package com.cheyunkeji.er.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.youth.banner.loader.ImageLoader;

/**
 * @author Michael
 * @date 2018/7/24 - 16:10.
 */

public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        imageView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
        imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
        imageView.setImageResource((Integer) path);
    }


}
